| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | /** global: jest */ |
||
| 5 | describe('Index routes.', () => { |
||
| 6 | test('GET homepage', (done) => { |
||
| 7 | const request = { |
||
| 8 | method: 'GET', |
||
| 9 | url: '/', |
||
| 10 | }; |
||
| 11 | const response = { |
||
| 12 | redirect: (targetUrl) => { |
||
| 13 | expect(targetUrl).toMatch(/.+/); |
||
| 14 | done(); |
||
| 15 | }, |
||
| 16 | }; |
||
| 17 | |||
| 18 | router.handle(request, response); |
||
| 19 | }); |
||
| 20 | }); |
||
| 21 |